package com.ejoysoft.wirelessnet.warehousing;

import java.util.Timer;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class Listener implements ServletContextListener{  
	private Timer timer =	null;
	public void contextInitialized(ServletContextEvent event){
		timer = new Timer(true);
		timer.schedule(new DTimer(), 0, 30000);//milliseconds
	}
   
	public void	contextDestroyed(ServletContextEvent event){  
		timer.cancel();
	}
}